package com.example.wjy.viewmodels;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;

import com.example.room.entity.Team;
import com.example.room.repository.TeamRepository;

public class TeamViewModel extends AndroidViewModel {
    TeamRepository repository;

    public TeamViewModel(@NonNull Application application) {
        super(application);
        repository = new TeamRepository(application);
    }

//    public void deleteTeam(long id) {
//        repository.deleteTeam(id);
//    }

    public void deleteTeam(Team... teams) {
        repository.deleteTeam(teams);
    }

    public void modifyTeam(Team...teams) {
        repository.modifyTeam(teams);
    }
}
